projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b014bf
)
xi2: Get the effective group state by ORing the XIGroupState values
author
Carlos Garnacho
<carlosg@gnome.org>
Thu, 8 Dec 2011 19:21:13 +0000
(20:21 +0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 23 Feb 2012 21:46:00 +0000
(16:46 -0500)
gdk/x11/gdkdevice-xi2.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkdevice-xi2.c
b/gdk/x11/gdkdevice-xi2.c
index 9eecb3c779570b52cf274f6117c8a57344b37976..bc6261be6f9f6f2de295204a280c50ab906f4435 100644
(file)
--- a/
gdk/x11/gdkdevice-xi2.c
+++ b/
gdk/x11/gdkdevice-xi2.c
@@
-742,7
+742,7
@@
_gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
{
gint group;
- group = group_state->base
+ group_state->latched +
group_state->locked;
+ group = group_state->base
| group_state->latched |
group_state->locked;
/* FIXME: do we need the XKB complications for this ? */
group = CLAMP(group, 0, 3);